package com.heitian.ssm.service.impl;

import com.heitian.ssm.dao.SuggestionDao;
import com.heitian.ssm.model.Suggestion;
import com.heitian.ssm.service.SuggestionService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * 作者： 陈建峰
 * 创建时间： 18/3/28 下午11:23
 * 版本： [1.0, 18/3/28]
 * 描述： <描述>
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class SuggestionServiceImpl implements SuggestionService {

    @Resource
    private SuggestionDao suggestionDao;

    /**
     * 保存反馈数据
     * @param suggestion
     */
    public void SaveSuggestion(Suggestion suggestion) {
        suggestionDao.SaveSuggestion(suggestion.getSuggestionGuid(),suggestion.getSuggestion(),suggestion.getCreatTime(),suggestion.getUserGuid(),suggestion.getUserName());
    }
}
